package Map遍历;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

//3.Lambda遍历
public class MapDemo4 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<>();
        map.put("杨坤伦","潭淏");
        map.put("张家地","张天宇");
        map.put("潭狗","付林立");
        map.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String key, String value) {
                System.out.println(key+"="+value);
            }
        });
    }
}
